package com.hsjk.szwj.module.train.dal.mysql.order;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hsjk.szwj.framework.mybatis.core.mapper.BaseMapperX;
import com.hsjk.szwj.module.train.controller.admin.vo.AdminOrderPageReqVO;
import com.hsjk.szwj.module.train.controller.admin.vo.AdminOrderPageRespVO;
import com.hsjk.szwj.module.train.controller.app.vo.order.OrderListRespVO;
import com.hsjk.szwj.module.train.dal.dataobject.order.OrderDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author chenjiawei
 * @desc
 * @Date 2023/08/28 11:23
 **/
@Mapper
public interface IOrderMapper extends BaseMapperX<OrderDO> {
    IPage<AdminOrderPageRespVO> getAdminOrderPage(Page<AdminOrderPageReqVO> page,
                                                  @Param("param") AdminOrderPageReqVO reqVO,
                                                  @Param("tenantIds") List<Long> tenantIds);
    List<OrderListRespVO> getOrderListByMemberId(@Param("memberId") Long memberId);
}
